VSS Analyze - Access to file [filename] is denied

Posted by AJ on Stack Overflow See other posts from Stack Overflow or by AJ
Published on 2009-11-27T15:36:00Z Indexed on 2010/05/23 4:01 UTC
Read the original article Hit count: 184

Filed under:

Our VSS database appears to be horribly out of shape. I've been trying to archive and run "analyze" and keep getting "Access to file [filename] is denied. The file may be read-only, may be in use, or you may not have permission to write to the file. Correct this problem and run analyze again." No one is logged into SourceSafe (including myself) and I'm running the analyze utility from the VS command prompt as follows:

analyze -v -f -bbackuppath databasepath

I get similar errors if I try and create project archives from the ssadmin tool.

The database is on a network share, and we're running VSS 2005 v8.0.50727.42. I'd love to be able to do this, as it would be a first step in a move away from VSS.

Thanks in advance.

More Info Every time I run analyze, the file that spawns the access denied message changes. It's almost as if running analyze unlocks that file so that the next time I get through to the next one.

© Stack Overflow or respective owner

Related posts about visual-sourcesafe